import axios from '@/libs/apiRequest'

export const login = (data) => {
  return axios.request({
    url: '/api/user/login',
    data: data,
    method: 'post'
  })
}

export const register = (data) => {
  return axios.request({
    url: '/api/user/register',
    data: data,
    method: 'post'
  })
}

export const getValidateCode = (data) => {
  return axios.request({
    url: '/api/user/validate',
    data: data,
    method: 'post'
  })
}

export const logout = (data) => {
  return axios.request({
    url: '/api/user/logout',
    data: data,
    method: 'post'
  })
}

export const getGoldVipInfo = (data) => {
  return axios.request({
    url: '/api/user/goldvip_info',
    data: data,
    method: 'post'
  })
}

export const addGoldVip = (data) => {
  return axios.request({
    url: '/api/user/add_goldvip',
    data: data,
    method: 'post'
  })
}

export const userInfo = (data) => {
  return axios.request({
    url: '/api/user/info',
    data: data,
    method: 'post'
  })
}


